﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ViCode_LeVi.Controls.Charts;
using ViCode_LeVi.Data;
using ViCode_LeVi.Langs;

namespace ViCode_LeVi.Controls.EnumsControl
{
    public class EnumControl_ImportanceMode : EnumControl_Base
    {
        public EnumControl_ImportanceMode()
            : base(() => Enum.GetValues(typeof(eImportanceMode)), c =>
                {
                    eImportanceMode ec = (eImportanceMode)c;                    
                    VMTextBlockExt_ControlTextInfoInData vm = new VMTextBlockExt_ControlTextInfoInData();
                    if (ec == eImportanceMode.Absolute)
                        vm.TextPath = "eImportanceMode_Absolute_Text";
                    if (ec == eImportanceMode.Relativ)
                        vm.TextPath = "eImportanceMode_Relativ_Text";
                    return vm;                    
                }
                    )
                
        { 
        }
    }
    public class EnumControl_TaskType : EnumControl_Base
    {
        public EnumControl_TaskType()
            : base(() => RootData.Intance.TaskItemGroupOfStep4, c => ((Step_TaskItemGroup)c).Code)
        { 
        }
    }
    
}
